// src/store/avatarStore.ts
import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useImageStore = defineStore('image', () => {
  const imageUrl = ref<string | null>(null)

  const setAvatarUrl = (url: string | null) => {
    imageUrl.value = url
  }

  return {
    imageUrl,
    setAvatarUrl,
  }
})
